<html>
<head>
    <meta charset="utf-8">
    <title>Kohana Gallery</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="">
    <meta name="description" content="">

    <? foreach ($styles as $style => $media): ?>
        <link type="text/css" rel="stylesheet" href="<?php echo $style ?>"
              media="<?=$media ?>"/>
    <? endforeach; ?>

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

</head>
<body>
<nav>

</nav>
<article>
    <? if (count($errors) > 0):?>
    <div id="errors">
        <? foreach ($errors as $error):?>
            <div class="error-item">
                <?=__($error)?>
            </div>
        <? endforeach ?>
    </div>
    <? endif ?>
    <div id="formupload">
        <form accept-charset="UTF-8" action="" method="post" enctype="multipart/form-data">
            <div>
                <?=Form::label('picture', 'Загрузите изображение')?>
            </div>
            <div>
                <?=Form::file('picture') ?>
            </div>
            <div>
                <?=Form::label('description', 'Описание изображения')?>
            </div>
            <div>
                <?=Form::textarea('description')?>
            </div>
            <div>
                <button type="submit">Загрузить</button>
            </div>
        </form>
    </div>
    <div id="gallery">
    </div>
</article>
<footer>

</footer>
<!-- Load Javascripts -->
<script type="text/javascript">var BASEURL = "<?=URL::base() ?>"</script>
<? foreach ($scripts as $script): ?>
    <script type="text/javascript" src="<?=$script?>"></script>
<? endforeach; ?>
</body>
</html>